package com.laf.manage.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.laf.common.annotation.Excel;
import com.laf.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * 用户认证管理对象 tb_auth_info
 *
 * @author zian
 * @date 2024-11-01
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tb_auth_info")
@ApiModel(value = "AuthInfo", description = "用户认证管理实体")
public class AuthInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 真实姓名
     */
    @Excel(name = "真实姓名")
    @ApiModelProperty("真实姓名")
    private String realName;

    /**
     * 身份证图片
     */
    @Excel(name = "身份证图片")
    @ApiModelProperty("身份证图片")
    private String idNumberUrl;

    @ApiModelProperty(value = "身份证号码")
    private String idNumber;


    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("有效期")
    private LocalDate expiryDate;

}
